﻿using System;

namespace Common
{

    // TODO: misschien generic maken?
    // TODO: wat is beter, floats of double?
    public class Point
    {
        public float x, y;
        
        public Point()
        {
            x = y = 0.0f;
        }

        public Point(float newx, float newy)
        {
            x = newx;
            y = newy;
        }

        public Point(Point toCopy)
        {
            x = toCopy.x;
            y = toCopy.y;
        }

        public static readonly Point Zero = new Point(0,0);
    }

    public class IntPoint
    {
        public int x, y;
        
        public IntPoint()
        {
            x = y = 0;
        }

        public IntPoint(int newx, int newy)
        {
            x = newx;
            y = newy;
        }

        public IntPoint(IntPoint toCopy)
        {
            x = toCopy.x;
            y = toCopy.y;
        }

        public static readonly IntPoint Zero = new IntPoint(0,0);
    }

    public class Match
    {
        public string name;
        public float score;
        public Match(string n, float s)
        {
            name = n;
            score = s;
        }
    }    
}
